home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / BugBug / bugbug.jar / bugbug / Rand.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-07-25  |  483 b   |  19 lines

  1. package bugbug;
  2.  
  3. class Rand {
  4.    // $FF: renamed from: I int
  5.    private static final int field_0 = 1664525;
  6.    private static final int ConstantValue = 1013904223;
  7.    private static int Code = System.identityHashCode(new Object()) + (int)System.currentTimeMillis();
  8.  
  9.    public static void seed(int var0) {
  10.       Code = var0;
  11.    }
  12.  
  13.    public static int rand() {
  14.       Code = 1664525 * Code + 1013904223;
  15.       Code /= 10000;
  16.       return Code;
  17.    }
  18. }
  19.